<!doctype html><html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('mall/treasureboxratio/flexigrid') ?>',
                    colModel: [
		    			{display: '<?= translate('ID') ?>', name: 'id', width: 100,iskey:true, hide:'true'},
                        {display: '<?= translate('MALL_TREASUREBOXRATIO_BOX_ID') ?>', name: 'box_id', width: 120},
                        {display: '<?= translate('MALL_TREASUREBOXRATIO_OBJECT_NAME') ?>', name: 'object_id', width: 200},
                        //{display: '<?= translate('MALL_TREASUREBOXRATIO_OBJECT_NAME') ?>', name: 'object_name', width: 90},
                        {display: '<?= translate('MALL_TREASUREBOXRATIO_LEVEL_TYPE') ?>', name: 'level_type', width: 90},
                        {display: '<?= translate('MALL_TREASUREBOXRATIO_CHOICE_TYPE') ?>', name: 'choice_type', width: 90},
                        {display: '<?= translate('MALL_TREASUREBOXRATIO_NUMBER') ?>', name: 'number', width: 90},
                        {display: '<?= translate('MALL_TREASUREBOXRATIO_PROFESSION') ?>', name: 'profession', width: 90},
                        {display: '<?= translate('MALL_TREASUREBOXRATIO_MATERIAL_TYPE') ?>', name: 'material_type', width: 90},
                        {display: '<?= translate('MALL_TREASUREBOXRATIO_RATION') ?>', name: 'ration', width: 120},
                        //{display: '<?= translate('MALL_TREASUREBOXRATIO_ISFOREVER') ?>', name: 'isforever', width: 90},
                        //{display: '<?= translate('MALL_TREASUREBOXRATIO_STARTTIME') ?>', name: 'starttime', width: 120},
                        //{display: '<?= translate('MALL_TREASUREBOXRATIO_ENDTIME') ?>', name: 'endtime', width: 120},
                        {display: '<?= translate('MANAGE') ?>', name: 'id', width: 135, sortable: false, process: formatOp, toggle: false}
                    ],
                    buttons: [
                        //{name: 'add', displayname: "<?= translate('ADD') ?>", title: "<?= translate('ADD') ?>", bclass: 'add', onpress: multi},
                        {name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},
                        {separator: true}
                    ],
                    searchitems: true,
                }));
                SG.admin = $.extend(SG.admin, {
                    add_url: '<?= site_url("mall/treasureboxratio/add/") ?>',
                   // edit_url: '<?= site_url("mall/treasureboxratio/edit/") ?>',
                    del_url: '<?= site_url("mall/treasureboxratio/del/") ?>',
                });
            });
        </script>
    </body>
</html>